package com.gree.syq.wifidemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class ServiceActivity extends Activity {
    private static final String TAG = "ServiceActivity";

    private DemoApplication application;

    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        Intent intent = getIntent();
        Log.i(TAG, "onCreate: " + intent.toString());
        application = (DemoApplication)getApplication();

        if(application.mState.equals(RemoteRole.getInstance(getApplicationContext()))) {
            RemoteRole.getInstance(getApplicationContext()).configNetwork();
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        finish();
    }
}
